package cn.fyg.service.finance.domain.salary;

import lombok.Data;

@Data
public class ProjectDto {
	private String projectName;
	private String projectNumber;
	private String receivedAmount;
	private String invoiceAmount;
	private String initAssistBalance;
	private String unReceivedAmount;
	private String a = "";
	
	public String getProjectName() {
		return this.projectName.substring(0, this.projectName.length() - 1);
	}
	public String getInitAssistBalance() {
		if (this.initAssistBalance != null) {
			a = "期初金额: " + this.initAssistBalance + " 元";
		} else {
			a = "期初金额: 0 元";
		}
		return a;
	}
	
	public String getInvoiceAmount() {
		
		if (this.invoiceAmount != null) {
			a = "结算金额: " + this.invoiceAmount + " 元";
		}else {
			a = "结算金额: 0 元";
		}
		return a;
	}
	
	public String getReceivedAmount() {
		return "已收金额: " + this.receivedAmount + " 元";
	}
	
	public String getUnReceivedAmount() {
		return "应收金额: " + this.unReceivedAmount + " 元";
	}
}
